package com.sunrise.generico.entidade;

import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import lombok.Getter;
import lombok.Setter;

import com.sunrise.generico.entidade.iface.EntidadeNegocio;

@Entity
@Table(name = "ipi")
public class IPI implements EntidadeNegocio {



	/**
	 * 
	 */
	private static final long serialVersionUID = 6245607247041173997L;

	@Id
	@SequenceGenerator(name="pk_sequence",sequenceName="ipi_id_seq", allocationSize=1)
	@GeneratedValue(strategy=GenerationType.SEQUENCE,generator="pk_sequence")
	@javax.persistence.Column
	@Getter @Setter
	private Long id;
	
	@Column(name = "valorIpi", length = 9, scale = 2)
	@Getter @Setter
	private BigDecimal valorIpi;
	
	@Column(name = "valorAliq", length = 9, scale = 2)
	@Getter @Setter
	private BigDecimal valorAliq;
	
	@Column(name = "clEnq")
	@Getter @Setter
	private String clEnq;
	
	@Column(name = "CNPJProd")
	@Getter @Setter
	private String CNPJProd;
	
	@Column(name = "cSelo", length = 60)
	@Getter @Setter
	private String cSelo;
	
	@Column(name = "qSelo", length = 15, scale = 0)
	@Getter @Setter
	private BigDecimal qSelo;
	
	@Column(name = "vBC", length = 15, scale = 2)
	@Getter @Setter
	private BigDecimal vBC;
	
	@Column(name = "qUnid", length = 15, scale = 4)
	@Getter @Setter
	private BigDecimal qUnid;
	
	@Column(name = "vUnid", length = 15, scale = 0)
	@Getter @Setter
	private BigDecimal vUnid;
	
	@Column(name = "tipoCalculo")
	@Getter @Setter
	private Boolean tipoCalculo;
	
	
	@OneToOne
	@Getter @Setter
	private Produto produto;
	
	@OneToOne
	@Getter @Setter
	private SituacaoTributaria situacaoTributaria;
	
}
